import Vue from 'vue'
const vm = new Vue()

const HomeApi = {
  //热门推荐
  HotRecommend:function HotRecommend() {
    return vm.$http.get(vm.$CONSTANTS.APIGoods + 'HotRecommend/selectHotRecommend')
  },
  //bannerList
  SelectBanner:function SelectBanner(params={}) {
    return vm.$http.get(vm.$CONSTANTS.P30006 + 'HomePageBanner/selectBanner', {params:params})
  },
  //热门游戏
  HotGame:function HotGame(params) {
    return vm.$http.post(vm.$CONSTANTS.P30006 + 'category/searchgamelistbytype', params)
  }
}

export {HomeApi}
